﻿using BCCommon;
using BCCommon.TradingEnums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Trading.Enquiry.SaleEnquiry
{
    /// <summary>
    /// 销售询盘用户提交
    /// </summary>
    public class SaleEnquiryUserRequestDto:SaleEnquiryRequestDto
    {
        /// <summary>
        /// 用户姓名
        /// </summary>		
        [Display(Name = "用户姓名")]
        [Required(ErrorMessage = "请填写您的姓名，客服人员会尽快与您取得联系")]
        [StringLength(20, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public new string UserName { get; set; }
        /// <summary>
        /// 用户联系电话
        /// </summary>		
        [Display(Name = "用户联系电话")]
        [Required(ErrorMessage = "请填写您的联系电话，客服人员会尽快与您取得联系")]
        [StringLength(11, MinimumLength = 8, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        [RegularExpression(RegexPatterns.PHONE, ErrorMessage = "{0} 应为11位中国运营商手机号")]
        public new string Phone { get; set; }
    }
}
